<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>运算价格</title>
<script type="text/javascript">
var p=19.7;
var num=100;
var sum=p*num;
window.alert(sum);
document.write("<h1>这是总价</h1>");
</script>
</head>
<body>

</body>
</html>